If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
ocean
import ocean y = 65 # Jellyfish moves left until a shark appears! ocean.draw_jellyfish(80, y) ocean.draw_jellyfish(70, y) ocean.draw_jellyfish(60, y) ocean.draw_jellyfish(50, y) ocean.draw_jellyfish(40, y) ocean.draw_shark(40, y)
x = 80 while x >= 40: ocean.draw_jellyfish(x, y) x = x - 10 ocean.draw_shark(40, y)
x = 80 while x > 40: ocean.draw_jellyfish(x, y) x = x - 10 ocean.draw_shark(40, y)